import request from '@/utils/request'
// 新增部门
export const addDepartments = data => request.post('/company/department', data)
// 获取所有部门
export const getDepartments = () => request.get('/company/department')
// 根据ID修改部门详情
export const updateDepartments = data => request.put(`/company/department/${data.id}`)
// 根据ID删除部门
export const delateDepartments = id => request.delete(`/company/department/${id}`)
// 根据ID查询部门详情
export const getDepartmentsDeatil = id => request.get(`/company/department/${id}`)
